package com.amarsoft.batch.bean;

import java.util.Map;

public class TableTBean
{
    private String tableName;
    private Map<String, UserTableCol> userTableCols;

    public String getTableName()
    {
        return tableName;
    }

    public void setTableName(String tableName)
    {
        this.tableName = tableName;
    }

    public TableTBean addUserTableCol(UserTableCol userTableCol)
    {
        this.userTableCols.put(userTableCol.getTableName(), userTableCol);
        return this;
    }
    
    public TableTBean removeUserTableCol(UserTableCol userTableCol)
    {
        this.userTableCols.remove(userTableCol.getTableName());
        return this;
    }

    public Map<String, UserTableCol> getUserTableCols()
    {
        return userTableCols;
    }

    public void setUserTableCols(Map<String, UserTableCol> userTableCols)
    {
        this.userTableCols = userTableCols;
    }
}
